Component org.nuxeo.ecm.automation.server.auth.config
In bundle org.nuxeo.ecm.automation.server
Requirements
Resolution Order
583
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime
framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.
Contributions
- org.nuxeo.ecm.automation.server.auth.config--authenticators
- org.nuxeo.ecm.automation.server.auth.config--specificChains
XML Source
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.automation.server.auth.config">
<!--
Setup a Basic Auth plugin for /automation paths that will always send 401 on authentication failures
-->
<require>org.nuxeo.ecm.platform.ui.web.auth.defaultConfig</require>
<extension
target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
point="authenticators">
<authenticationPlugin name="AUTOMATION_BASIC_AUTH" enabled="true"
class="org.nuxeo.ecm.platform.ui.web.auth.plugins.BasicAuthenticator">
<parameters>
<parameter name="AutoPrompt">true</parameter>
<parameter name="RealmName">Nuxeo Automation</parameter>
<parameter name="ExcludeBAHeader_Token">X-Authentication-Token</parameter>
<parameter name="ExcludeBAHeader_Token">X-No-Basic-Header</parameter>
<parameter name="ExcludeBAHeader_COOKIE">Cookie</parameter>
</parameters>
</authenticationPlugin>
</extension>
<extension
target="org.nuxeo.ecm.platform.ui.web.auth.service.PluggableAuthenticationService"
point="specificChains">
<specificAuthenticationChain name="Automation">
<urlPatterns>
<url>(.*)/automation.*</url>
</urlPatterns>
<replacementChain>
<plugin>AUTOMATION_BASIC_AUTH</plugin>
</replacementChain>
</specificAuthenticationChain>
</extension>
</component>